home *** CD-ROM | disk | FTP | other *** search
/ PC-SIG: World of Games / PC-SIG World of Games (CDRM1080710) (1993).iso / ENT / DISK1644.ZIP / GMENU.DOC < prev    next >
Text File  |  1992-02-21  |  18KB  |  349 lines

  1.                       
  2. Program Name: GMENU - Version 1.2O        Written by:   Garry Spencer
  3.               (ShareWare)                               5O27 Byron Rd
  4.                                                         Memphis, TN 38122
  5.  
  6. Files Used: GMENU.EXE - Main program
  7.             GMENU.DAT - Data file for GMENU.EXE
  8.             GMENU.DOC - Documentation (this file)
  9.  
  10. Installation: From the root directory (C:\), execute the following commands
  11.               with the GMENU disk in drive A: .
  12.               MD \GMENU
  13.               CD \GMENU
  14.               COPY A:GMENU.*
  15.               SET GMENU=\GMENU\GMENU.DAT
  16.               If you have been using my earlier program (GAMES), you can copy
  17.               the GAMES.DAT file to GMENU.DAT.  The structure is similar.
  18.               Be sure that the \GMENU directory is in your PATH statement!
  19.               To start, type GMENU.  The GMENU.DAT data file can be edited at
  20.               the command line (or from within GMENU by typing the E key).
  21.               Please read through the GMENU.DAT file before using it, to make
  22.               sure that there are no syntax problems.
  23.               
  24.  
  25.   Desired GMENU Function               Required Command
  26. ────────────────────────────────────   ──────────────────────────────────────
  27.   Move cursor up one line              Keyboard: Up-arrow
  28.                                        Joystick: Push stick forward
  29.                                        Mouse   : Move mouse forward
  30.  
  31.   Move cursor down one line            Keyboard: Down-arrow
  32.                                        Joystick: Pull stick back
  33.                                        Mouse   : Move mouse back
  34.  
  35.   Move up one menu page                Keyboard: PgUp or Left-arrow
  36.                                        Joystick: Move stick to the left
  37.                                        Mouse   : Move mouse forward while 
  38.                                                  pressing the right-mouse button
  39.  
  40.   Move down one menu page              Keyboard: PgDn or Right-arrow
  41.                                        Joystick: Move stick to the right
  42.                                        Mouse   : Move mouse back while pressing
  43.                                                  the right-mouse button
  44.  
  45.   Make a selection                     Keyboard: press the Enter key or Spacebar
  46.                                        Joystick: press the FIRE button
  47.                                        Mouse   : press the left-mouse button
  48.  
  49.   Edit the current menu file using     Keyboard: press the E key
  50.   the editor specified in the EDIT=
  51.   menu file command (default is ED )
  52.  
  53.   Exit the program with the DOS        Keyboard: press the ESC key
  54.   command specified in the EXIT=
  55.   menu file command (up to 14                   (the Alt-X key exits without
  56.   characters)                                    executing any DOS commands)
  57.  
  58.  
  59.                         GMENU DATA FILE INFORMATION
  60.  
  61. 1. First of all, this menu system was designed for those who are not intimidated
  62.    by the DOS command line prompt.  The menu file must be created/edited to
  63.    meet the user's needs.  This may not be as easy as some menu systems, but an
  64.    experienced user can make the GMENU system very flexible.
  65.  
  66. 2. The GMENU.EXE file MUST be located in a directory which is in the current
  67.    path.  The file GMENU.DAT should be located in a directory which is in the
  68.    current PATH (e.g. C:\GMENU) -OR- the environment variable GMENU can
  69.    be used to hold the directory and/or filename of the GMENU data file.  The
  70.    default filename, unless it is changed, is GMENU.DAT. 
  71.  
  72. 3. When the GMENU program is executed, the following actions are taken:
  73.    The environment area is searched for a variable named GMENU.  IF it is
  74.    found, its string is searched for a valid directory path AND/OR filename.
  75.    This value can be set at the DOS command line by using :
  76.    SET GMENU=\path  or  SET GMENU=\path\filename or SET GMENU=filename .
  77.    Be sure that the environment space is large enough for this information.
  78.    The size of the environment area can be be changed (at bootup) by including
  79.    the SHELL command in the CONFIG.SYS file.  Check the DOS manual if necessary.
  80.    The default filename of the GMENU data file is GMENU.DAT, but if a 
  81.    filename is specified in the GMENU variable, the new filename will be 
  82.    used.  The program will attempt to locate the data file in the path 
  83.    (if one was specified), otherwise it will try the current directory, then
  84.    the system PATH (if present). When the file is located, its contents are
  85.    read into memory.  If the file can not be located, an error message is
  86.    printed on the screen.
  87.  
  88. 4. Menu options are entered into memory by placing a # (menu option name tag)
  89.    as the first character of a line.  The NAME of the menu option is placed
  90.    on the same line and immediately after the # (pound·sign).  This text will
  91.    appear on the screen.  Only one line of text may be used for each menu
  92.    option.  The actions to be taken, when that option is selected, are placed
  93.    on the next line(s).  Several lines of normal DOS (batch) commands may be
  94.    entered.  GMENU creates a temporary batch file to execute these commands.
  95.    If another batch file is to invoked, the CALL (DOS 3+) command may be used.
  96.    To conserve file space, the (^ up·carat) may be entered in place of a
  97.    cr·lf (carriage·return-line·feed) combination.  For example,
  98.  
  99.    method 1                            
  100.    #UNO Card Game
  101.    CD\GAMES
  102.    UNO
  103.    #NEXT-GAME etc.
  104.  
  105.    method 2
  106.    #UNO Card Game
  107.    CD\GAMES^UNO
  108.    #NEXT-GAME etc.
  109.  
  110.    Please note that command line arguments (%1 %2 etc.) can not be included
  111.    in the execution of the temporary batch file.  Any command with fixed
  112.    command line arguments may be placed inside the temporary batch file.
  113.  
  114.  
  115.    In addition to normal DOS batch file commands, the GMENU program looks
  116.    for special GMENU system commands such as:
  117.    COLOR=    EDIT=   EXIT=   GOTO=   INPUT=   SCREENSAVE=   TAB=   TITLE=
  118.  
  119.    All of these commands are optional.  If any of these commands are not found,
  120.    the default values are used.  The EDIT=, EXIT=, INPUT= and SCREENSAVE= 
  121.    commands MUST be located BEFORE the first menu option name tag (a # in the
  122.    first character of a line).  The COLOR=, GOTO= and TITLE= may be put anywhere
  123.    in the file, but the COLOR= takes effect on the next menu page.
  124.  
  125.    The following list shows the syntax of the GMENU data file system commands:
  126.  
  127.    COLOR=SCREEN(fb)  TITLE(fb)  POINTER(fb)  NAME(fb)
  128.          This command specifies the default foreground (f) and background (b)
  129.          colors for the next page of menu options.  This command is optional.
  130.          If the COLOR= command is omitted, or if any of the 4 argument fields
  131.          are omitted, then the system uses certain default colors or the last 
  132.          value assigned to the argument field. The SCREEN(fb) field is used
  133.          to set the colors for the entire screen.  The foreground color is
  134.          not used in this version, but should be included to conform to the
  135.          syntax.  The TITLE(fb) field sets the colors for the title (top-line)
  136.          of the menu screen.  The POINTER(fb) sets the colors for the small
  137.          arrow pointer on the left side of the screen, which is used to make
  138.          a menu selection.  The NAME(fb) field sets the colors for the name
  139.          of each menu option on the screen.  The 4 argument fields are optional
  140.          and may appear in any order after the COLOR= command. Any error in
  141.          the values (such as a background color other than O through 7) will
  142.          cause GMENU to use previously defined values for the (fb) variables.
  143.  
  144.          The (fb) foreground·background values are as follows:
  145.  
  146.                        Foreground colors (f) 
  147.  
  148.          low-intensity  bright  low+blink  bright+blink  base-color
  149.          ─────────────  ──────  ─────────  ────────────  ─────────────────
  150.            ┌── O          8         -            *       black/dark-gray
  151.            │   1          9         !            (       blue
  152.            │   2          A         @            a       green
  153.        ┌───┤   3          B         #            b       cyan(blue-green)
  154.        │   │   4          C         $            c       red
  155.        │   │   5          D         %            d       magenta(purple)
  156.        │   │   6          E         ^            e       brown/yellow
  157.        │   └── 7          F         &            f       gray/white
  158.        │ 
  159.        └─ Background colors (b) are the same as the low-intensity foreground
  160.           values (O through 7).  
  161.           For example,   COLOR=SCREEN(OO)  TITLE(E4)  POINTER(FO)  NAME(AO)
  162.           would cause the screen foreground and background to be black (normal).
  163.           The title (top·line) would appear as yellow on a red background.
  164.           The pointer would be white on a black background.  The name of each
  165.           menu option on the page would be green on a black background.
  166.           Experimenting with these values can yield some unusual effects.
  167.           There is a way to (temporarily) change the name color by specifying
  168.           the foreground and background colors (between commas starting in 
  169.           column 2) on the option-name-tag line. The background defaults to
  170.           the current name-background-color if not specified. The change is
  171.           in effect for that line only and reverts back to the previous values
  172.           on subsequent lines(name-tags).
  173.           For example:  #,fb,Option Name      or     #,f,Option Name
  174.                         #,30,UNO Card Game    or     #,3,UNO Card Game
  175.  
  176.  
  177.    EDIT=  This command allows the user to specify a default editor which can
  178.           then be used to edit the current GMENU data file.  Note that if
  179.           this command is not used, the default is ED . The GMENU data file(s)
  180.           MUST first be created at the DOS command line level.  After the file
  181.           has been created and loaded in GMENU as the current data file, it
  182.           can be edited from within GMENU. For example, EDIT=TED would be used
  183.           to invoke Tiny-EDitor.
  184.  
  185.    EXIT=  This command allows the user to execute a DOS command whenever the
  186.           GMENU program is exited (by pressing the ESC key).  At this time,
  187.           the limit is 14 characters (after EXIT= and excluding the ENTER
  188.           keystroke).  For example, EXIT=CD\^DIR would cause the default
  189.           directory to be changed to the root directory and then the DIR
  190.           command would be executed.
  191.  
  192.    INPUT= This command selects a default input device to override the device
  193.           selected by GMENU.  The GMENU program checks first for a mouse and
  194.           then a joystick.  If neither are found, the keyboard is used. The
  195.           syntax is:
  196.           INPUT=KEYBOARD
  197.           INPUT=JOYSTICK
  198.           INPUT=MOUSE        <══ 2OO dpi mouse (system default if attached)
  199.           INPUT=MOUSE1OO         1OO dpi
  200.           INPUT=MOUSE4OO         4OO dpi
  201.           INPUT=MOUSE8OO         8OO dpi
  202.  
  203.    GOTO=  Please see the section on sub-menus for more information on GOTO=.
  204.  
  205.    SCREENSAVE= This command is used to prevent screen phosphor burn-out
  206.                caused by leaving a menu on the screen for an extended period
  207.                of time.  The value used with this function is in MINUTES.
  208.                For example, SCREENSAVE=5 will begin the screen·saver function
  209.                five minutes after the last keyboard activity (while in the
  210.                menu mode).  This does not apply to programs executed by GMENU.
  211.                The minimum, default and maximum values are as follows:
  212.                SCREENSAVE=.25           (.25 minutes = 15 seconds)
  213.                SCREENSAVE=1             (default is 1 minute)
  214.                SCREENSAVE=1O            (maximum value allowed)
  215.                If a number outside of this range is specified, the value used
  216.                is the limit closest to the specified value.  An error in the
  217.                value specified will cause the default (1 minute) to be used.
  218.                Once the screen·saver is invoked, any keypress will return to
  219.                the current menu.
  220.  
  221.    TAB=   This command sets the tab position for the TITLE and option-NAME-tags.
  222.           The following (optional) fields are available:
  223.           TAB=TITLE(mm) NAME(nn)       where mm is 1 to 75 and nn=2 to 75.
  224.           The default values are TITLE(1) and NAME(3).  The TAB command takes
  225.           effect when the next TITLE page is generated.
  226.  
  227.    TITLE= This command is used to start a new menu page.  The colors used on
  228.           the new menu page may be set before or after the TITLE= command, as
  229.           long as the colors are set before the next # (option name tag).  The
  230.           length of the title itself can be up to 8O characters in length.
  231.           Each menu page can hold up to 23 options.  If more than 23 options
  232.           follow a TITLE= statement, a new menu page is generated with the same
  233.           title as the last TITLE= statement.  The system can handle up to 1OO
  234.           menu pages. Note that it may be necessary to pad the title with
  235.           leading or trailing spaces in order to center the title. 
  236.  
  237.  
  238.           Additional Notes:
  239.  
  240. 1. RUNNING GMENU FROM INSIDE A BATCH FILE (GMENU @)
  241.    Sometimes you might want to use the GMENU program for one particular type
  242.    of application (e.g. games).  You might be using another menu system to
  243.    handle the other types of applications on your system, but want to be able
  244.    to call GMENU from the other menu program.  This can be done as follows:
  245.    Create a batch file (e.g. GM.BAT) which contains the command (GMENU @ ) as
  246.    the last command in the file.  The @ (at-sign) signals the GMENU program
  247.    to exit from the batch file and to run itself from the DOS command line.
  248.    This batch file (GM) could then be invoked from the other menu system.  The
  249.    EXIT= command could be used to send the user back to the other menu system,
  250.    (e.g. EXIT=MENU). Do not use the name GMNU.BAT or GMENU.BAT because these
  251.    filenames are used by GMENU.EXE.  The command (GMENU @) could be placed as
  252.    the last line of the AUTOEXEC.BAT file to run the GMENU program whenever 
  253.    the system is re-booted.
  254.  
  255. 2. ON-LINE HELP
  256.    The GMENU system does not have on-line help built into the system, but you
  257.    can include a menu option to do this.  For example,
  258.  
  259.    #ON-LINE HELP           
  260.    MORE < \GMENU\GMENU.DOC       -or-   any LIST/browse program
  261.    #Next-option etc.      
  262.  
  263. 3. SUB-MENUS (Method 1 using the GOTO= command)
  264.    The GOTO= command may be used to change the current menu page (in the 
  265.    current menu file).  The syntax is: GOTO=title where title is the title of
  266.    another menu page. This command is not case-sensitive which means that it
  267.    will match upper or lower case characters. Leading or trailing spaces on the
  268.    title are ignored. Note that the GOTO= must be the only command on the line
  269.    after the option-name-tag (#).
  270.  
  271.    For example, the following will cause a "sub-menu" page (Bonus Games) to be
  272.    shown when the user selects the (Some Games to Play) option.
  273.  
  274.    #Some Games to Play
  275.    GOTO=Bonus Games
  276.    #Next Option etc.
  277.    dir
  278.  
  279.  
  280.    TITLE=       Bonus Games       
  281.    #UNO Card Game
  282.    CD\GAMES^UNO
  283.    #etc.....
  284.  
  285.    Note that the menu pages can still be accessed sequentially.
  286.    
  287.  
  288.  
  289.    SUB-MENUS (Method 2 using separate menu files)
  290.  
  291.    The GMENU system was basically set up as a flat-file menuing system.  This
  292.    means that the pages of menu options are accessed sequentially (like turning
  293.    the pages in a book).  You can access a sub-menu file by changing the file
  294.    and/or path specification in the GMENU environment variable.  For example,
  295.  
  296.    #ARCADE GAMES
  297.    SET GMENU=\GMENU\ARCDGAME.DAT
  298.    DEL GMNU.TMP
  299.  
  300.    #BOARD GAMES
  301.    SET GMENU=\GMENU\BRDGAMES.DAT
  302.    DEL GMNU.TMP
  303.  
  304.    #CARD GAMES
  305.    SET GMENU=\GMENU\CRDGAMES.DAT
  306.    DEL GMNU.TMP
  307.  
  308.    #Next-option etc.
  309.  
  310.    The GMENU program will cause the SET command to be executed as a menu 
  311.    option and then will reload itself with the new menu data file.  The files
  312.    specified in the example above must be created from the DOS command line.
  313.    They can then be edited from within the GMENU program by typing the E 
  314.    command (if the EDIT= command specifies the correct editor for your system).
  315.    Note that menu titles, colors, screen·save times etc. must be specified in
  316.    each GMENU data file that you create.  These files should have commands for
  317.    implementing a return to the main GMENU.DAT file.
  318.  
  319.    For example, to go back to the main menu:
  320.  
  321.    #RETURN TO MAIN-MENU
  322.    SET GMENU=\GMENU\GMENU.DAT
  323.    DEL GMNU.TMP
  324.    #Next-option etc.
  325.  
  326.  
  327.    Note: The command, DEL GMNU.TMP , which appears after each SET GMENU=
  328.          statement discards the temporary file used by the GMENU program
  329.          to keep track of the page/option which was executed last.  If the
  330.          temporary file is not found, GMENU will default to page 1 and
  331.          option 1. This is done in order to cause GMENU to select the 
  332.          first page/option of the new menu file.
  333.  
  334. 4. Special Note:
  335.    The temporary batch file (GMNU.BAT) has 3 exit points.
  336.    (a) If the user simply allows the batch commands to exit normally, the
  337.        default directory will be changed back to the directory from which
  338.        GMENU was invoked.  The GMENU program will then be restarted.
  339.    (b) If the user puts a GOTO EXITGM1 in the batch commands, the default
  340.        directory will be changed back to the directory from which GMENU was
  341.        invoked, but GMENU will not be restarted.
  342.    (c) If the user puts a GOTO EXITGM2 in the batch commands, the batch file
  343.        will exit into the current default directory and GMENU will not be 
  344.        restarted.
  345.  
  346. 5. I hope that you will find the GMENU system to be useful and reasonably
  347.    versatile.  
  348.  
  349.